﻿using System.ComponentModel;

namespace Vtron.HipcConfigurationTools.Domain
{
    public class CodecInfo : INotifyPropertyChanged
    {
        private int index;
        private string ip;
        //private SignalType signalType;
        private CodecType codecType;

        public int Index
        {
            get { return index; }
            set 
            { 
                index = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Index"));
                }
            }
        }

        public string Ip
        {
            get { return ip; }
            set
            {
                ip = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("Ip"));
                }
            }
        }

        //public SignalType SignalType
        //{
        //    get { return signalType; }
        //    set
        //    {
        //        signalType = value;
        //        if (PropertyChanged != null)
        //        {
        //            PropertyChanged.Invoke(this, new PropertyChangedEventArgs("SignalType"));
        //        }
        //    }
        //}

        public CodecType CodecType
        {
            get { return codecType; }
            set
            {
                codecType = value;
                if (PropertyChanged != null)
                {
                    PropertyChanged.Invoke(this, new PropertyChangedEventArgs("CodecType"));
                }
            }
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
